$scale: 65;
$scalePercent: 65%;

.barousel {
  box-sizing: border-box;
  position: relative;
  width: 1080px;
  height: 420px * $scale / 100;
  padding: 10px 0;
  margin: 0 auto;
  text-align: center;

  &-wrapper {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1080px;
    background-size: 100%;

    &.mask {
      .barousel-item {
        &.prev,
        &.next {
          &::after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.50);
          }
        }
      }
    }
  }

  &-item {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 50%;
    width: $scalePercent;
    height: 100%;
    border-radius: 10px;
    transition: all 500ms ease-in-out;
    transform-style: preserve-3d;
    transform-origin: center;
    background-size: inherit;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate3d(-50%, 0, -80px);
    z-index: 1;

    &::after {
      position: absolute;
      content: "";
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-color: rgba(0, 0, 0, 0);
      transition-delay: 100ms!important;
      transition: all 500ms;
      cursor: pointer;
    }

    &.active {
      transform: translate3d(-50%, 0, 0);
      z-index: 20;
    }

    &.prev {
      transform: translate3d(-75%, 0, -100px);
      z-index: 19;
    }

    &.next {
      transform: translate3d(-25%, 0, -100px);
      z-index: 18;
    }
  }

  &-button {
    display: block;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    color: #333;
    text-decoration: none;

    &--next {
      right: 0;
    }

    &--prev {
      left: 0;
    }
  }

  &-dots {
    width: 100%;
    height: 20px;

    > span {
      display: inline-block;
      width: 20px;
      height: 2px;
      margin: 1px 3px;
      background-color: #e5e5e5;
      cursor: pointer;

      &.current {
        background-color: #db3738;
      }
    }
  }
}
